using System;
using System.Net;

namespace Game500.ClientServerCommon.Src
{
  [Serializable]
  public class NetworkGameInfo
  {
    public NetworkGameInfo(Guid gameId, int maxPlayers, IPEndPoint serverAddress, Guid mapId, string gameMessage) : this(gameId, 0, maxPlayers, serverAddress, mapId, gameMessage)
    {
    }

    public NetworkGameInfo(Guid gameId, int activePlayers, int maxPlayers, IPEndPoint serverAddress, Guid mapId, string gameMessage)
    {
      GameId = gameId;
      ActivePlayers = activePlayers;
      MaxPlayers = maxPlayers;
      ServerAddress = serverAddress;
      MapId = mapId;
      GameMessage = gameMessage;
    }

    public Guid GameId { get; set; }
    public int ActivePlayers { get; set; }
    public int MaxPlayers { get; set; }
    public IPEndPoint ServerAddress { get; set; }
    public Guid MapId { get; set; }
    public string GameMessage { get; set; }
  }
}